<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script src="/statics/libs/jquery.min.js"></script>
    <script src="/statics/libs/vue.min.js"></script>
    <link rel="stylesheet" href="/statics/plugins/element-ui/lib/theme-chalk/index.css">
    <script src="/statics/plugins/element-ui/lib/index.js"></script>

</head>
<style>
    /*解决Vue刷新一瞬间出现样式未加载完或者出现Vue代码问题*/
    [v-cloak] {
        display: none;
    }
</style>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <el-form :inline="true" :model="q" class="demo-form-inline">
            <el-form-item>
                <el-input v-model.trim="q.name" @keyup.enter="query" placeholder="名称"></el-input>
            </el-form-item>
            <!--            <el-form-item>-->
            <!--                <el-input v-model.trim="q.idNumber" @keyup.enter="query" placeholder="身份证号"></el-input>-->
            <!--            </el-form-item>-->
            <el-form-item>
                <el-button @click="query">查询</el-button>
            </el-form-item>
            <el-form-item>
                <el-button type="danger" @click="del">删除</el-button>
            </el-form-item>
        </el-form>

        <el-table
                ref="multipleTable"
                :data="page.list"
                tooltip-effect="dark"
                style="width: 100%"
                @selection-change="handleSelectionChange">
            <el-table-column
                    type="selection">
            </el-table-column>

            <el-table-column
                    prop="chineseName"
                    label="求职者姓名">
            </el-table-column>
            <el-table-column
                    prop="idNumber"
                    label="身份证号">
            </el-table-column>
            <el-table-column
                    prop="recruit.describes"
                    label="职位描述">
            </el-table-column>
            <el-table-column
                    prop=""
                    label="操作">
                <template slot-scope="scope">
                    <el-link type="primary" :underline="false" @click="selectUserInfo(scope.row.userId)">详情</el-link>
                    <el-link type="primary" :underline="false" @click="listWorkAttendance(scope.row.idNumber)">考勤</el-link>
                    <el-link type="primary" :underline="false" @click="listReward(scope.row.idNumber)">奖惩</el-link>
                    <el-link type="primary" :underline="false" @click="listEvaluate(scope.row.idNumber)">评价</el-link>
                </template>
            </el-table-column>
        </el-table>
        <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="page.currPage"
                :page-sizes="[5, 10, 15, 20]"
                :page-size="page.pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="page.totalCount"
                style="text-align: center">
        </el-pagination>
    </div>
<!--个人信息-->
    <el-dialog title="详情信息" :visible.sync="showUserInfo">
        <el-form :model="userInfo" label-width="100px" class="demo-ruleForm">
            <el-form-item label="姓名" prop="chineseName">
                <el-input v-model="userInfo.chineseName" disabled auto-complete="new-password"></el-input>
            </el-form-item>
            <el-form-item label="手机号" prop="phoneNumber">
                <el-input v-model="userInfo.phoneNumber" disabled></el-input>
            </el-form-item>
            <el-form-item label="身份证号" prop="idNumber">
                <el-input v-model="userInfo.idNumber" disabled></el-input>
            </el-form-item>
            <el-form-item label="性别" prop="sex">
                <el-radio-group v-model="userInfo.sex" disabled>
                    <el-radio v-for="sex in sexList" :label="sex.id">{{sex.sex}}</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="年龄" prop="age">
                <el-input v-model="userInfo.age" disabled></el-input>
            </el-form-item>
            <el-form-item label="学历" prop="education">
                <el-input v-model="userInfo.education" disabled></el-input>
            </el-form-item>
            <el-form-item label="专业" prop="major">
                <el-input v-model="userInfo.major" disabled></el-input>
            </el-form-item>
        </el-form>
    </el-dialog>
<!--考勤信息-->
    <el-dialog title="考勤信息" :visible.sync="showWorkAttendance">
        <el-table :data="workAttendanceList">
            <el-table-column property="companyName" label="公司名称" width="150"></el-table-column>
            <el-table-column property="employeeName" label="员工姓名" width="200"></el-table-column>
            <el-table-column property="idNumber" label="身份证号"></el-table-column>
            <el-table-column property="type" label="出勤状态">
                <template slot-scope="scope">
                    {{scope.row.type === 0 ? '出勤' : '矿工'}}
                </template>
            </el-table-column>
            <el-table-column property="createDate" label="日期"></el-table-column>
        </el-table>
    </el-dialog>
<!--奖惩信息-->
    <el-dialog title="奖惩信息" :visible.sync="showReward">
        <el-table :data="rewardList">
            <el-table-column property="companyName" label="公司名称" width="150"></el-table-column>
            <el-table-column property="employeeName" label="员工姓名" width="200"></el-table-column>
            <el-table-column property="idNumber" label="身份证号"></el-table-column>
            <el-table-column property="type" label="类别">
                <template slot-scope="scope">
                    {{scope.row.type === 0 ? '奖励' : '惩罚'}}
                </template>
            </el-table-column>
            <el-table-column property="createDate" label="日期"></el-table-column>
        </el-table>
    </el-dialog>
<!--评价信息-->
    <el-dialog title="评价信息" :visible.sync="showEvaluate">
        <el-table :data="evaluateList">
            <el-table-column property="companyName" label="公司名称" width="150"></el-table-column>
            <el-table-column property="employeeName" label="员工姓名" width="200"></el-table-column>
            <el-table-column property="idNumber" label="身份证号"></el-table-column>
            <el-table-column property="createDate" label="日期"></el-table-column>
            <el-table-column property="describe" label="评价"></el-table-column>
        </el-table>
    </el-dialog>
</div>

<script src="/statics/js/modules/dev/userrecruit.js?_${.now?long}"></script>
</body>
</html>
